package com.dmap.userportrait.rpc;

import com.dmap.userportrait.config.FeignConfiguration;
import com.dmap.userportrait.rpc.fallback.UserBasicRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author liuying
 * @Description 用户基础信息Rpc调用
 * @Date 15:45 2018/6/25
 */
@FeignClient(name = "dmap-ucenter-server", fallback = UserBasicRpcFallback.class)
public interface UserBasicRpc {
    @RequestMapping(value = "/rpc/dmap-ucenter-server/v1/userPortrait/select/selectUserBasicInfo", method = RequestMethod.POST)
    String selectUserBasicInfo(@RequestParam(value = "userId") Long userId);
}
